/*
    Project:        Home Power Control
    File:           main.cpp
    Author:         christian@karunamusic.at
    Date:           01.2015
    Description:    main of the client.
 */

#include <QTimer>
#include <exception>
#include "HPCClient.h"

#include <iostream>
#include <QThread>
#include "Sensors/Weather/HPCBarometer.h"

int main(int argc, char *argv[])
{
    try
    {
        HPCClient client( argc, argv );
        QTimer::singleShot(0,&client,SLOT(Run()));
        client.exec();
    }
    catch ( std::exception& e )
    {
        LOG(fatal, e.what());
        return -1;
    }

    return 0;
}
